package com.wubai.subject.application.test;


import com.wubai.subject.infra.basic.entity.SubjectCategory;
import com.wubai.subject.infra.basic.service.SubjectCategoryService;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

@RestController("testController")
public class SubjectController {

    @Resource
    private SubjectCategoryService subjectCategoryService;

    @GetMapping("/test")
    public String test (){
        SubjectCategory subjectCategory = subjectCategoryService.queryById(1L);


        return subjectCategory.getCategoryName();
    }


}
